import Vue from 'vue'

// loading 显示
Vue.prototype.uniShowLoading = function (title = '加载中', mask = true) {
  uni.showLoading({
    title,
    mask,
  })
}

// loading 隐藏
Vue.prototype.uniHideLoading = function () {
  uni.hideLoading()
}

// Toast 提示
Vue.prototype.uniShowToast = function (title = '', icon = 'none') {
  uni.showToast({
    title,
    icon,
  })
}
